---
title: logging.TextLogger.toFile()
api: logging.TextLogger.toFile
---

## Description

<Summary/>

## Syntax

``` js
logger.toFile(filename)
```

## Parameters

<Parameters/>

## See Also

* [logging.TextLogger](/reference/api/logging/TextLogger)
* [toHTTP()](/reference/api/logging/TextLogger/toHTTP)
* [toStderr()](/reference/api/logging/TextLogger/toStderr)
* [toStdout()](/reference/api/logging/TextLogger/toStdout)
* [toSyslog()](/reference/api/logging/TextLogger/toSyslog)
